home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / archiver / pdtar.zip / MAKEFILE.MNX < prev    next >
Text File  |  1988-03-07  |  2KB  |  73 lines

  1. # Makefile for public domain tar program.
  2. # Minix version, compiled under Minix 1.1 C
  3. # Minix port by Eric Roskos, IDA
  4. # @(#)Makefile 1.13    86/10/29
  5.  
  6. # Berserkeley version
  7. #DEFS = -DBSD42
  8. #LIBS = 
  9. #LINTFLAGS = -abchx
  10. #DEF_AR_FILE = \"/dev/rmt8\"
  11. #DEFBLOCKING = 20
  12.  
  13. # USG version
  14. #DEFS = -DUSG
  15. #LIBS = -lndir
  16. #LINTFLAGS = -bx
  17. #DEF_AR_FILE = \"/dev/rmt8\"
  18. #DEFBLOCKING = 20
  19.  
  20. # UniSoft's Uniplus SVR2 with NFS
  21. #DEFS = -DUSG -DUNIPLUS -DNFS -DSVR2
  22. #LIBS = -lndir
  23. #LINTFLAGS = -bx
  24. #DEF_AR_FILE = \"/dev/rmt8\"
  25. #DEFBLOCKING = 20
  26.  
  27. # V7 version
  28. DEFS = -DV7 -Dvoid=int -DNONAMES
  29. LIBS =
  30. LINTFLAGS = -abchx
  31. DEF_AR_FILE = \"/dev/fd0\"
  32. DEFBLOCKING = 20
  33.  
  34. CFLAGS = $(COPTS) $(DEFS) \
  35.     -DDEF_AR_FILE=$(DEF_AR_FILE) \
  36.     -DDEFBLOCKING=$(DEFBLOCKING)
  37. # next line for Debugging
  38. #COPTS = -g
  39. # next line for Production
  40. COPTS =
  41.  
  42. # Add things here like getopt, readdir, etc that aren't in your
  43. # standard libraries. Except, for Minix you need to add them
  44. # to SRCS instead due to the nested macros bug.
  45. SUBSRC=    
  46. SUBOBJ=    
  47.  
  48. SRCS =    tar.c create.c extract.c buffer.c getoopt.c list.c names.c \
  49.     port.c ctime.c
  50. OBJS =     tar.s create.s extract.s buffer.s getoopt.s list.s names.s \
  51.     port.s ctime.s
  52. AUX =    README PORTING Makefile TODO tar.1 tar.5 tar.h port.h
  53.  
  54. .c.s:
  55.     cc -c $(COPTS) $(DEFS) -DDEF_AR_FILE=$(DEF_AR_FILE) -DDEFBLOCKING=$(DEFBLOCKING) $*.c
  56.  
  57. tar:    $(OBJS)
  58.     cc -F -o tar $(COPTS) $(OBJS) $(LIBS)
  59.  
  60. lint:    $(SRCS)
  61.     lint $(LINTFLAGS) $(CFLAGS) $(SRCS)
  62.  
  63. clean:
  64.     rm -f errs *.s tar
  65.  
  66. tar.shar: $(SRCS) $(AUX)
  67.     shar >tar.shar $(AUX) $(SRCS)
  68.  
  69. tar.tar.Z: $(SRCS) $(AUX)
  70.     /bin/tar cf - $(AUX) $(SRCS) | compress -v >tar.tar.Z
  71.  
  72. $(OBJS): tar.h port.h
  73.